Some people would probably call this over secure, others might call it not secure enough. Either way, this will hash your password pretty well. (Based on SHA512, but a little more secure.) Adds salt to the beginning, middle and end of the password, as well as hashing with SHA512 and changing the first half of the SHA512 with str_rot13.

Instructions: Change your salts to whatever you'd like (make sure you don't use the ones shown in this tutorial, they probably wouldn't be that safe), then run it like a normal function.

=========================================================

function warpMyPass($pass){
	if($pass != null){
		$salt1 = "SomeSalt";
		$salt2 = "SomeMiddleSalt";
		$salt3 = "SomeLastSalt";
		if(strlen($pass) > 1){
			$len = floor((strlen($pass)/2));
			$first = substr($pass, 0, $len);
			$last = substr($pass, $len);
			$pass = $salt1.$first.$salt2.$last.$salt3;
		}else{
			$pass = $salt1.$pass.$salt3;
		}
		$pass = hash('sha512', $pass); //SHA is 128 characters long, by the way.
		$len = floor((strlen($pass)/2));
	        $pw = substr($pass, 0, $len);
		$pw = str_rot13($pw);
		$rest = substr($pass, $len);
		return($pw.$rest);
	}else{
		return false;
	}
}